package com.caldremch.component.listner;

import android.app.Activity;
import android.content.Context;
import android.view.View;

/**
 * Created by Caldremch on 2017-10-19 17:30
 */

public class NavigationBarListner {

    private Context mContext;

    public NavigationBarListner(Context context) {
        super();
        this.mContext = context;
    }

    public NavigationBarListner() {
        super();
    }

    public void onLeftClick(View v) {
        //默认是左边点击为关闭
        if (mContext != null && mContext instanceof Activity) {
            ((Activity) mContext).finish();
        }
    }

    public void onRightClick(View v) {

    }

    public void onTitleClick(View v) {

    }
}
